def run(params:list[str]):
    from ApiTools import apiTools,apiBase
    vec_name=apiBase.argv(params,1,"database/tools")
    quest=apiBase.argv(params,2,"Read the table ddl. uri is abc1, The name of the table is tab1")
    func_name=apiBase.argv(params,3,"read-table-ddl")
    param=apiBase.argv(params,4,'abc1,tab1')

    try:
        vectdb = apiTools.load_vec()
        # 根据函数的描述  训练 函数名字，函数参数
        vectdb.train_QA(collect_name=vec_name,question=quest, sql=func_name,key='',fun_name='tool-name')
        vectdb.train_QA(collect_name=vec_name,question=quest, sql=param,key='',fun_name='tool-param')
        return 'load function ok'
    except Exception as e:
        return f"function error:{e}"

#run([])